<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>白色主题导航系统</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link rel="stylesheet" type="text/css" href="http://36.133.110.23:8788/assets/theme222/css/page.css" />
    <link rel="stylesheet" type="text/css" href="http://36.133.110.23:8788/assets/theme111/css/left-side-menu.css">
    <link rel="stylesheet" type="text/css" href="http://36.133.110.23:8788/assets/theme111/font/iconfont.css">
	<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css'>
    <link href="http://36.133.110.23:8788/assets/theme111/plugins/css/icons.min.css" rel="stylesheet" type="text/css" />
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
            background-color: #f0f2f5;
            color: #333;
        }

        .container {
            height: 100vh;
        }

        /* 左侧导航栏 */
        .sidebar {
            width: 250px;
            background: #ffffff;
            height: 100vh;
            display: flex;
            flex-direction: column;
            box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .sidebar.collapsed {
            width: 0;
            overflow: hidden;
        }

        /* Logo区域 */
        .logo-area {
            background: #354066;
            color: #ffffff;
            text-align: center;
            font-size: 18px;
            font-weight: 600;
            border-bottom: 1px solid #e8e8e8;
            height: 56px;
            display: flex;
            align-items: center;
            padding-left: 30px;
        }

        /* 导航区域 */
        .nav-area {
            flex: 1;
            overflow-y: auto;
            background: transparent;
            padding: 12px 0;
        }

        /* 导航列表 */
        .nav-list {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        /* 一级导航项 */
        .nav-tab {
            margin: 3px 12px;
            border-radius: 6px;
            overflow: hidden;
        }

        .nav-tab:last-child {
            margin-bottom: 12px;
        }

        /* 一级导航链接 */
        .li-a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            color: #666666;
            text-decoration: none;
            transition: all 0.2s ease;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            border-radius: 6px;
            margin: 0;
        }

        .nav-tab-text {
            flex:1;
        }

        .li-a:hover {
            background: #f5f5f5;
            color: #333333;
        }

        .li-a.active {
            background: #ffffff;
            color: #354066;
            font-weight: 600;
        }

        /* 一级导航文字和图标容器 */
        .li-a .nav-text {
            display: flex;
            align-items: center;
            flex: 1;
        }

        .li-a i.fa {
            margin-right: 10px;
            width: 16px;
            text-align: center;
            font-size: 14px;
        }

        .li-a.active i.fa {
            color: #354066;
        }

        /* 展开图标 */
        .my-icon {
            transition: transform 0.2s ease;
            color: #999999;
            font-size: 16px;
            margin-left: 8px;
        }

        .li-a.active .my-icon {
            color: #354066;
        }

        .nav-tab.expanded .my-icon {
            transform: rotate(90deg);
        }

        /* 二级导航容器 */
        .nav-box {
            overflow: hidden;
            border-radius: 6px;
            transform: scaleY(0);
            transform-origin: top;
            transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
            opacity: 0;
            padding: 0;
            height: 0;
        }

        .nav-tab.expanded .nav-box {
            transform: scaleY(1);
            opacity: 1;
            padding: 8px 0;
            height: auto;
        }

        /* 二级导航链接 */
        .li-a-a {
            display: block;
            padding: 10px 16px 10px 40px;
            color: #666666;
            text-decoration: none;
            font-size: 13px;
            transition: all 0.2s ease;
            margin: 1px 8px;
            border-radius: 4px;
            background: transparent;
            font-weight: 400;
        }

        .li-a-a:hover {
            background: #e9ecef;
            color: #333333;
        }

        .li-a-a.active {
            color: #354066;
            font-weight: 600;
        }

        /* 主内容区域 */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: #f5f5f5;
        }

        /* 顶部栏 */
        .header {
            background-color: #354066;
            padding: 0 24px;
            box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 56px;
            border-bottom: 1px solid #e8e8e8;
        }

        .breadcrumb {
            color: #666;
            font-size: 14px;
            font-weight: 400;
        }

        /* 内容区域 */
        .content-area {
            flex: 1;
            padding: 20px;
            overflow: auto;
        }

        /* 内容卡片样式 */
        .content-card {
            background: #ffffff;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            padding: 24px;
            margin-bottom: 16px;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="logo-area">
            {项目名称}
        </div>
        <!-- 左侧导航栏 -->
        <div style="display: flex;">
            <div class="sidebar" id="sidebar">
                <div class="nav-area">
                    <ul class="nav-list">
                    </ul>
                </div>
            </div>
            <!-- 主内容区域 -->
            <div class="main-content">
                <div class="content-area">
                    <iframe src="{$url}" width="100%" height="100%" frameborder="0"></iframe>
                </div>
            </div>
        </div>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const sidebar = document.getElementById('sidebar');
            const navItems = document.querySelectorAll('.nav-item');

            // 导航展开/收起
            const navTabs = document.querySelectorAll('.nav-tab');
            navTabs.forEach(function(tab) {
                const navLink = tab.querySelector('.li-a');
                if (navLink) {
                    navLink.addEventListener('click', function(e) {
                        e.preventDefault();

                        // 关闭其他展开的菜单
                        navTabs.forEach(function(otherTab) {
                            if (otherTab !== tab) {
                                otherTab.classList.remove('expanded');
                            }
                        });

                        // 切换当前菜单
                        tab.classList.toggle('expanded');
                    });
                }
            });

            // 检查当前选中的菜单项并自动展开
            const activeSubNav = document.querySelector('.li-a-a.active');
            if (activeSubNav) {
                const parentNavTab = activeSubNav.closest('.nav-tab');
                if (parentNavTab) {
                    parentNavTab.classList.add('expanded');
                    parentNavTab.querySelector('.li-a').classList.add('active');
                }
            }

            // 响应式处理
            window.addEventListener('resize', function() {
                if (window.innerWidth > 768) {
                    sidebar.classList.remove('show');
                }
            });
        });
    </script>
</body>

</html>